import {
	billBaseUrl
} from "@/utils/config.js"

export const quotedPriceSteps = [{
		id: 1,
		title: "客户信息",
	},
	{
		id: 2,
		title: "收费明细",
	},
	{
		id: 3,
		title: "预览发送",
	},
]

export const unitOptions = [
	{
		value: "斤",
		label: "斤",
	},{
		value: "项",
		label: "项",
	}, {
		value: "台",
		label: "台",
	},
	{
		value: "次",
		label: "次",
	}, {
		value: "米",
		label: "米",
	}, {
		value: "个",
		label: "个",
	}, {
		value: "件",
		label: "件",
	}, {
		value: "瓶",
		label: "瓶",
	}, {
		value: "箱",
		label: "箱",
	}, {
		value: "条",
		label: "条",
	}, {
		value: "块",
		label: "块",
	}, {
		value: "组",
		label: "组",
	}, {
		value: "捆",
		label: "捆",
	},
]

export const tableOptions = [{
		value: "name",
		label: "收费项",
	}, {
		value: "number",
		label: "单价/单位*数量",
	},
	{
		value: "total",
		label: "合计",
	}
]


export const billCountOptions = [
	[{
			value: "number",
			label: "收入账单",
		},
		{
			value: "receivableAmount",
			label: "应收金额",
		},
		{
			value: "actualAmount",
			label: "实收金额",
		},
		{
			value: "arearAmount",
			label: "欠款金额",
			// color: '#FC524D'
		},
	],
	[{
			value: "refundNumber",
			label: "退款账单",
		},
		{
			value: "refundableAmount",
			label: "应退金额",
		},
		{
			value: "actualRefundAmount",
			label: "实退金额",
		},
		{
			value: "arearRefundAmount",
			label: "待退金额",
			// color: '#FC524D'
		},
	],
	[{
		value: "amount",
		label: "结余欠款",
	}, ]
]

export const voucherHeadOptions = [{
		value: "customer",
		childrenValue: 'name',
		label: "客户",
		width: '40%'
	},
	{
		value: "repairTime",
		label: "时间",
		width: '30%'
	}, {
		value: "number",
		label: "单号",
		width: '30%'
	}, {
		value: "customer",
		childrenValue: 'phone',
		label: "电话",
		width: '40%'
	},
	{
		value: "address",
		label: "客户地址",
		width: '60%'
	},
]

export const voucherFooterOptions = [{
		value: "lister",
		label: "收款人",
	},
	{
		value: "receivableAmount",
		label: "应收金额",
		currencySign: '￥',
	},
	{
		value: "actualAmount",
		label: "实收金额",
		currencySign: '￥',
	},
	{
		value: "arearAmount",
		label: "欠款",
		currencySign: '￥',
	},
	{
		value: "phone",
		label: "电话",
	},
	{
		value: "shopAddress",
		label: "地址",
	},
	{
		value: "customerSign",
		label: "客户签名",
	},
]



export const tableCellOptions = [{
		value: "index",
		label: "序号",
		width: "44rpx",
	},
	{
		value: "name",
		label: "商品/服务名称",
		width: "156rpx",
	},
	{
		value: "unit",
		label: "单位",
		width: "60rpx",
	},
	{
		value: "number",
		label: "数量",
		width: "60rpx",
	},
	{
		value: "unitPrice",
		label: "单价",
		width: "100rpx",
		currencySign: '￥',
	},
	{
		value: "total",
		label: "金额",
		width: "100rpx",
		currencySign: '￥',
	},
]



export const canvasTableCellOptions = [{
		value: "index",
		label: "序号",
		width: "22px",
	},
	{
		value: "name",
		label: "商品/服务名称",
		width: "78px",
	},
	{
		value: "unit",
		label: "单位",
		width: "30px",
	},
	{
		value: "number",
		label: "数量",
		width: "30px",
	},
	{
		value: "unitPrice",
		label: "单价",
		width: "50px",
		currencySign: '￥',
	},
	{
		value: "total",
		label: "金额",
		width: "50px",
		currencySign: '￥',
	},
]



export const tableFooterOptions = [{
		value: "upperCase",
		label: "大写金额：",
		width: "140px",
	},
	{
		value: "lowerCase",
		label: "（小写）",
		width: "55px",
	},

]



export const chooseMemberTabs = [{
		title: '最近',
		name: ''
	},
	{
		title: '收藏',
		name: 'collection'
	},
]

export const sealOptions = [{
		value: "1",
		label: "电子水印",
		url: "",
		width:"134rpx",
		height:"70rpx",
	},
	{
		value: "2",
		label: "公章",
		url: "",
		width:"70rpx",
		height:"70rpx",
	},
	{
		value: "3",
		label: "无",
		url: "",
	},
	
]

export const sealInfos = [
	{
		label: "水印",
		selectText: '选择电子水印',
		url: '',
		selected: true,
		value: '1',
		code: 'ELECTRON',
	},
	{
		label: "公章",
		selectText: '选择公章',
		url: '',
		selected: false,
		value: '2',
		code: 'OFFICIAL'
	},
	{
		label: "私章",
		selectText: '选择私章',
		url: '',
		selected: false,
		value: '4',
		code: 'PERSON'
	},
	{
		label: "不使用",
		url: '',
		selected: false,
		value: '3',
		code: ''
	}
]